AbortPrn is a small demo program to illustrate one method of aborting a print job in Visual Basic that was started using the Printer Object. Visual Basic does not provide a direct means of doing this but we can use the function AbortDoc in the Windows GDI library.